package org.maven.dependencybrowser.model;

import java.util.Collections;
import java.util.List;

import org.apache.maven.model.Dependency;


public class SimpleDependancy extends Artifact {
    
    public SimpleDependancy(Artifact parent, Dependency dependency, String scope) throws ArtifactInitialisationException {
        super(parent, dependency.getGroupId(), dependency.getArtifactId(), dependency.getVersion(), scope);
    }

    public boolean isLeaf() {
        return true;
    }

    public List getDependencies() {
    	return Collections.EMPTY_LIST;
    }

    public int dependencyCount() {
        return 1;
    }

}
